[INFO] fetching crate scratchpad 1.3.1...
[INFO] checking scratchpad-1.3.1 against try#19b19c1ea5b23336f439d5f7be1cc1b3f1220bef for pr-112999
[INFO] extracting crate scratchpad 1.3.1 into /workspace/builds/worker-7-tc2/source
[INFO] validating manifest of crates.io crate scratchpad 1.3.1 on toolchain 19b19c1ea5b23336f439d5f7be1cc1b3f1220bef
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+19b19c1ea5b23336f439d5f7be1cc1b3f1220bef" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate scratchpad 1.3.1
[INFO] finished tweaking crates.io crate scratchpad 1.3.1
[INFO] tweaked toml for crates.io crate scratchpad 1.3.1 written to /workspace/builds/worker-7-tc2/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+19b19c1ea5b23336f439d5f7be1cc1b3f1220bef" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+19b19c1ea5b23336f439d5f7be1cc1b3f1220bef" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a420fdec406141845121210faa381f8029b0be6d4170deff7c4445a424f67918" "/opt/rustwide/cargo-home/bin/cargo" "+19b19c1ea5b23336f439d5f7be1cc1b3f1220bef" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] af710991f80821c96fea664fa1d08fe22b52c52760caba62607eaab0a56cb126
[INFO] running `Command { std: "docker" "start" "-a" "af710991f80821c96fea664fa1d08fe22b52c52760caba62607eaab0a56cb126", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "af710991f80821c96fea664fa1d08fe22b52c52760caba62607eaab0a56cb126", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "af710991f80821c96fea664fa1d08fe22b52c52760caba62607eaab0a56cb126", kill_on_drop: false }`
[INFO] [stdout] af710991f80821c96fea664fa1d08fe22b52c52760caba62607eaab0a56cb126
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a420fdec406141845121210faa381f8029b0be6d4170deff7c4445a424f67918" "/opt/rustwide/cargo-home/bin/cargo" "+19b19c1ea5b23336f439d5f7be1cc1b3f1220bef" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 179a3c8b52c8a2efd930ddc5e7aa18ae7ca6daa54d490c8392cab5363ec4d39f
[INFO] running `Command { std: "docker" "start" "-a" "179a3c8b52c8a2efd930ddc5e7aa18ae7ca6daa54d490c8392cab5363ec4d39f", kill_on_drop: false }`
[INFO] [stderr]    Compiling semver-parser v0.7.0
[INFO] [stderr]    Compiling arrayvec v0.4.12
[INFO] [stderr]     Checking stable_deref_trait v1.2.0
[INFO] [stderr]     Checking nodrop v0.1.14
[INFO] [stderr]    Compiling semver v0.9.0
[INFO] [stderr]    Compiling rustc_version v0.2.3
[INFO] [stderr]    Compiling scratchpad v1.3.1 (/opt/rustwide/workdir)
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/traits.rs:523:14
[INFO] [stdout]     |
[INFO] [stdout] 523 |         &mut *(self.to_bytes_with_nul() as *const [u8] as *mut [u8])
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[deny(cast_ref_to_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/traits.rs:595:14
[INFO] [stdout]     |
[INFO] [stdout] 595 |           &mut *(CStr::from_bytes_with_nul_unchecked(slice) as *const CStr
[INFO] [stdout]     |  ______________^
[INFO] [stdout] 596 | |             as *mut CStr)
[INFO] [stdout]     | |_________________________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `scratchpad` (lib) due to 3 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/traits.rs:523:14
[INFO] [stdout]     |
[INFO] [stdout] 523 |         &mut *(self.to_bytes_with_nul() as *const [u8] as *mut [u8])
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[deny(cast_ref_to_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell`
[INFO] [stdout]    --> src/traits.rs:595:14
[INFO] [stdout]     |
[INFO] [stdout] 595 |           &mut *(CStr::from_bytes_with_nul_unchecked(slice) as *const CStr
[INFO] [stdout]     |  ______________^
[INFO] [stdout] 596 | |             as *mut CStr)
[INFO] [stdout]     | |_________________________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `scratchpad` (lib test) due to 3 previous errors
[INFO] running `Command { std: "docker" "inspect" "179a3c8b52c8a2efd930ddc5e7aa18ae7ca6daa54d490c8392cab5363ec4d39f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "179a3c8b52c8a2efd930ddc5e7aa18ae7ca6daa54d490c8392cab5363ec4d39f", kill_on_drop: false }`
[INFO] [stdout] 179a3c8b52c8a2efd930ddc5e7aa18ae7ca6daa54d490c8392cab5363ec4d39f
